package com.guli.gulimall.ware.feign;

import com.guli.common.to.SpuBoundTo;
import com.guli.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("gulimall-product")
public interface ProductFeignService {
    /**
     *  /product/skuinfo/info/{skuId}
     *  /api/product/skuinfo/info/{skuId}
     *  1).所有的请求过一下网关
     *      @FeignClient("gulimall-gateway")
     *      /api/product/skuinfo/info/{skuId}
     *  2）.直接请求服务
     *      @FeignClient("gulimall-product")
     *      /product/skuinfo/info/{skuId}
     * @param skuId
     * @return
     */
    @RequestMapping("/product/skuinfo/info/{skuId}")
    public R info(@PathVariable("skuId") Long skuId);
}
